package com.LCQ.crm.workbench.service;

import com.LCQ.crm.exception.ClueConvertException;
import com.LCQ.crm.exception.ClueDeleteException;
import com.LCQ.crm.vo.PaginationVo;
import com.LCQ.crm.workbench.domain.Activity;
import com.LCQ.crm.workbench.domain.Clue;
import com.LCQ.crm.workbench.domain.Tran;

import java.util.List;
import java.util.Map;

public interface ClueService {
    boolean save(Clue clue);

    PaginationVo<Clue> getPageList(Map<String, Object> map);

    Clue getClueById(String id);

    List<Map> getAssociatedAct(String id);

    boolean unbindActCLue(String id);

    PaginationVo getUnbindingActByCond(Map<String, String> map);

    boolean bindActClue(String clueId,String[] actIds);

    List<Activity> getBindActByCond(Map map);

    boolean convert(String clueId, Tran tran, String createBy) throws ClueConvertException;

    boolean delete(String clueId) throws ClueDeleteException;
}
